<div id="categories">
  <h2>所有一级商品分类</h2>

  <%= raw @categories.map{ |category| link_to(category.name, category_path(category.id)) }.join(' | ') -%>
  <!--
<%# categories.each do |category| -%>
  <div class="category">
    <h2><%#= category.name %></h2>
    <div class="content">
      <%#= category.children.map{ |child| link_to(child.name, child) }.join(' | ') -%>
    </div>
    <br/>
  </div>
<%# end -%>
-->
</div>
